package com.tk.exam.mapper;

import com.tk.exam.domain.TkToken;
import com.tk.exam.domain.TkTokenExample;
import com.tk.exam.vo.TkTokenVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface TkTokenMapper {
    int countByExample(TkTokenExample example);

    int deleteByExample(TkTokenExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TkToken record);

    int insertSelective(TkToken record);

    List<TkToken> selectByExampleWithRowbounds(TkTokenExample example, RowBounds rowBounds);

    List<TkToken> selectByExample(TkTokenExample example);

    TkToken selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TkToken record, @Param("example") TkTokenExample example);

    int updateByExample(@Param("record") TkToken record, @Param("example") TkTokenExample example);

    int updateByPrimaryKeySelective(TkToken record);

    int updateByPrimaryKey(TkToken record);

    void deleteByToken(String token);

    int updateExpireTimeByPrimaryKey(TkTokenVo record);
}